package flexibility;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class showMessage {
	public void showMessages(JFrame parent,String msg, String title, int type) {
		if (type == 1) {
			JOptionPane.showMessageDialog(parent, msg, title,
					JOptionPane.ERROR_MESSAGE);
		}
		if (type == 2) {
			JOptionPane.showMessageDialog(parent, msg, title,
					JOptionPane.INFORMATION_MESSAGE);
		}
	}

}
